<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>人员记录</title>
  <style media="screen">
    body,html{
      margin: 0;
      padding: 0;
      background-color: #f7f7f7;
    }
    .container {
      width: 90%;
      margin-left: 5%;
      margin-top: 20px;
    }
    .btn {
      display: inline-block;
      line-height: 40px;
      height: 40px;
      width: 100px;
      color:#f7f7f7;
      text-align: center;
      cursor: pointer;
    }
    .btn-default {
      background-color: #34495e;
    }
    .btn-default:hover {
      background-color:#4e6d8d;
    }
    .btn-success {
      background-color: #2ecc71;
    }
    .btn-success:hover {
      background-color: #55d98d;
    }
    .table{
      border: 1px solid #4e6d8d;
      width: 500px;
    }
    th,td {
      width: 25%;
      height: 30px;
      line-height: 30px;
      text-align: center;
    }
    .pagination {
      margin-top: 20px;
      width: 500px;
      text-align: center;
    }
  </style>
</head>
<body>
  <div class="container">
    <h3>请选择会场:</h3>
    <div id="btn">
      <span class="btn btn-success">全部</span>
      <span class="btn btn-default">A会场</span>
      <span class="btn btn-default">B会场</span>
      <span class="btn btn-default">C会场</span>
    </div>
    <h3>人员名单：</h3>
    <table class="table">
      <thead>
        <tr>
          <th>id</th>
          <th>姓名</th>
          <th>手机号</th>
          <th>公司名</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>1</td>
          <td>张cang苗</td>
          <td>18732636271</td>
          <td>吉姆科技</td>
        </tr>
        <tr>
          <td>1</td>
          <td>张cang苗</td>
          <td>18732636271</td>
          <td>吉姆科技</td>
        </tr>
        <tr>
          <td>1</td>
          <td>张cang苗</td>
          <td>18732636271</td>
          <td>吉姆科技</td>
        </tr>
        <tr>
          <td>1</td>
          <td>张cang苗</td>
          <td>18732636271</td>
          <td>吉姆科技</td>
        </tr>
      </tbody>
    </table>
    <div class="pagination">
        <div class="btn btn-default">上一页</div>
        <div class="btn btn-default">下一页</div>
        <div class="btn btn-default">导出EXCEL</div>
    </div>
  </div>
  <script src="js/jquery.min.js" charset="utf-8"></script>
  <script type="text/javascript">
    $('#btn span').on('click',function () {
      $('#btn span').removeClass('btn-success').addClass('btn-default');
      $(this).removeClass('btn-default').addClass('btn-success');
      console.log(this);
    })
  </script>
</body>
</html>
